package cn.lastjune.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "LOGINLOG", schema = "CGB")
public class LoginLog implements java.io.Serializable
{
    private Integer num;
    private String loginuser;
    private Date logintime;

    public LoginLog(Integer num, String loginuser, Date logintime)
    {
        super();
        this.num = num;
        this.loginuser = loginuser;
        this.logintime = logintime;
    }

    @Id
    @Column(name = "NUM", nullable = false, length = 20)
    public Integer getNum()
    {
        return num;
    }

    public void setNum(Integer num)
    {
        this.num = num;
    }

    @Column(name = "LOGINUSER", length = 40)
    public String getLoginuser()
    {
        return loginuser;
    }

    public void setLoginuser(String loginuser)
    {
        this.loginuser = loginuser;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "LOGINTIME", length = 7)
    public Date getLogintime()
    {
        return logintime;
    }

    public void setLogintime(Date logintime)
    {
        this.logintime = logintime;
    }

}
